projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1279c7
)
(Fget_buffer_create): Disallow empty string.
author
Karl Heuer
<kwzh@gnu.org>
Wed, 6 Apr 1994 04:06:13 +0000
(
04:06
+0000)
committer
Karl Heuer
<kwzh@gnu.org>
Wed, 6 Apr 1994 04:06:13 +0000
(
04:06
+0000)
src/buffer.c
patch
|
blob
|
history
diff --git
a/src/buffer.c
b/src/buffer.c
index d8742eb2c6169e015a307c98133b74a3617f4587..38593b486c15b3a8e3d9b735bc8bdd9b60a827e7 100644
(file)
--- a/
src/buffer.c
+++ b/
src/buffer.c
@@
-230,6
+230,9
@@
The value is never nil.")
if (!NILP (buf))
return buf;
+ if (XSTRING (name)->size == 0)
+ error ("Empty string for buffer name is not allowed");
+
b = (struct buffer *) xmalloc (sizeof (struct buffer));
BUF_GAP_SIZE (b) = 20;